how opening and closing of stomata takes place